import axios from "axios"
import Message from "element-ui"

export const postRequest = (url,params) => {
  return axios({
    method: "post",
    url: url,
    data: params,
  })
}

export const getRequest = (url,params) => {
  return axios({
    method: "get",
    url: url,
    params:params
  })
}

export const deleteRequest = (url,params) => {
  return axios({
    method: "delete",
    url: url+"/"+params,
  })
}